<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			function $$(id){
				return document.getElementById(id)
			}
			window.onload=function(){
				var cnv=$$("canvas")
				var cxt=cnv.getContext("2d")
				
				var image=new Image()
				image.src="img/2.jpeg"
				cxt.translate(300,100)
				image.onload=function(){
					cxt.drawImage(image,50,50)
					for(var i=0;i<150;i++){
					cxt.translate(25,25)
					cxt.scale(0.95,0.95)
					cxt.rotate(Math.PI/10)
					cxt.drawImage(image,50,50)
				}
				}
				
			}
		</script>
	</head>
	<body>
		<canvas id="canvas"width="2000" height="2000" style="border:1px dashed gray;"></canvas>
	</body>
</html>
